public class text {
    public static void main(String[] args){
        BinaryTree binaryTree=new BinaryTree();
        BinaryTree.TreeNode root=binaryTree.createTree();
        System.out.println("---------前序---------");
        binaryTree.preOrder(root);
        System.out.println();
        System.out.println("----------中序---------");
        binaryTree.inOrder(root);
        System.out.println();
        System.out.println("----------后序---------");
        binaryTree.postOrder(root);
        System.out.println();
        System.out.println("二叉树中结点的个数： "+binaryTree.size(root));
        System.out.println("二叉树中叶子结点的个数："+binaryTree.getLeafNodeCount(root));
        System.out.println("二叉树的深度："+binaryTree.getHeight(root));
        System.out.println("二叉树中是否存在E  "+binaryTree.findVal(root,'E'));





    }
}
